<%@ Page Language="C#" MasterPageFile="~/MainMaster.master"  AutoEventWireup="true" CodeFile="~/newSearchResults_doctors.aspx.cs" Inherits="newSearchResults_doctors" Title="Search Results:Doctors"  %>

<%@ Register Src="~/includes/DoctorMenu.ascx" TagName="DoctorMenu" TagPrefix="uc1" %>
<%@MasterType VirtualPath="~/MainMaster.master" %>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainTable" runat="server" Visible ="true" >
    <table width="549"  border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="bodytxt">
            
            <table width="549" border="0" cellpadding="0" cellspacing="0" bgcolor="#F1F1F1">
              <tr>
                <td style="width:9px; height: 7px;" class="bodytxt" align="center"><img src="images/grey-curver-inside-left.gif" alt="" width="9" height="8" /></td>
                <td class="bodytxt" style="border-top:1px solid #E0E0E0; width:531px; height: 7px;" align="center"><img src="images/spacer.gif" alt="" width="8" height="1" /></td>
                <td style="width:9px; height: 7px;" class="bodytxt" align="center"><img src="images/grey-curver-inside-right.gif" alt="" width="9" height="8" /></td>
              </tr>
              <tr>
                <td class="bodytxt" style="border-left:1px solid #E0E0E0;"><img src="images/spacer.gif" alt="" width="8" height="1" /></td>
                <td class="bodytxt" align="center">
                
                 <table width="514" border="0" align="center" cellpadding="0" cellspacing="0">
                     <tr>
                         <td align="center">
                             <uc1:DoctorMenu ID="DoctorMenu1" runat="server" />
                         </td>
                     </tr>
                  <tr><td align="center" ><asp:Label id="lblMsg" runat="server"></asp:Label><br/></td></tr>
                  <tr><td align="center" >&nbsp;</td></tr>
                  <tr>
                    <td align="center" class="bodytxt" style="width: 546px; height: 141px;">                      
                        <asp:GridView DataKeyNames="Id" ID="grdSearch" runat="server" AutoGenerateColumns="False" ShowFooter="True" OnRowDataBound="grdSearch_RowDataBound" Width="100%" AllowPaging="True" OnPageIndexChanging="grdSearch_PageIndexChanging" CssClass="normalgrey_12" BorderStyle="None" BorderWidth="0px" CellPadding="5" >
                            <Columns>
                                <asp:TemplateField HeaderText="Name">                                 
                                    <ItemTemplate  >
                                        <%if (frompage.ToString() == "PatientRate")
                                          {%>
                                            <a class="link-top" style="font-size:18px;" href="<%=Session["strHttp"]%>doctor/RateDoctors.aspx?id=<%# Eval("Id") %>&frompage=<%#frompage %>" title="Show Details">
                                            <b><%# Eval("docname") %></b>
                                        <%}
                                          else
                                          { %>
                                        <!-- Comented for implement new URL Formate at 17/07/08 by Ranjeet   
                                       <a class="link-top" href="<%=Session["strHttp"]%>doctor/DoctorsDetails.aspx?id=<%# Eval("Id") %>&frompage=<%#frompage %>" title="Show Details">
                                            <b><%# Eval("docname") %></b>
                                       </a>-->
                                       
                                       <a class="link-top" href="<%=Session["strHttp"]%>doctor/DoctorsDetails.aspx?id=<%# Eval("Id") %>&frompage=<%#frompage %>" title="Show Details">
                                            <b><%# Eval("docname") %></b>
                                       </a>
                                       
                                       <%} %>
                                    </ItemTemplate>                                                                    
                                     <HeaderStyle HorizontalAlign="Left" />
                                </asp:TemplateField>                                                               
                                <asp:TemplateField HeaderText="Address">
                                <ItemTemplate>
                                <%#Eval("address")%>
                                </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Specialty">
                                <ItemTemplate>
                                <%#Eval("speciality")%>
                                </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Overall Rating">
                                <ItemTemplate>
                                <%#Eval("rating")%></td></tr><tr><td colspan="4" style="background-color:White" >
                                </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:TemplateField>                                                              
                            </Columns>
                                <RowStyle HorizontalAlign="Left" />
                                <PagerStyle HorizontalAlign="Right" BorderStyle="None" VerticalAlign="Top" />
                                <FooterStyle HorizontalAlign="Left" />
                            <HeaderStyle BackColor="Lavender" />
                            <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast" NextPageText="Next"
                                Position="TopAndBottom" PreviousPageText="Previous" />
                                </asp:GridView>
                        <br/>
                        <asp:Button ID="btnBackToSearch" runat="server" OnClick="btnBackToSearch_Click" Text="Back To Search" />
                    </td>
                  </tr>
                
                  <tr>
                    <td align="left" class="bodytxt" style="width: 516px; height: 8px;"><img src="images/spacer.gif" alt="" width="8" height="8" /></td>
                  </tr>
                </table></td>
                <td class="bodytxt" style="border-right:1px solid #E0E0E0;"><img src="images/spacer.gif" alt="" width="8" height="1" /></td>
              </tr>
              
              <tr>
                <td class="bodytxt"><img src="images/grey-curver-inside-left-bot.gif" alt="" width="9" height="9" /></td>
                <td class="bodytxt" style="border-bottom:1px solid #E0E0E0;"><img src="images/spacer.gif" alt="" width="8" height="1" /></td>
                <td class="bodytxt"><img src="images/grey-curver-inside-right-bo.gif" alt="" width="9" height="9" /></td>
              </tr>
            </table>
            
            </td>
          </tr>
        </table>


</asp:Content>


<asp:Content ID="iScriptContent" ContentPlaceHolderID="ScriptContent" runat="server" ></asp:Content>
